package models.region;

import models.UUIDModel;

import javax.persistence.*;

/**
 * 区划列表
 * TODO 暂时不需要
 */
//@Entity
@Table(name = "rn_regions")
public class Region extends UUIDModel {

    /**
     * 父节点Code
     */
    @Column(name = "parent_code" , length = 100)
    public String parentCode;

    /**
     * 节点编号
     */
    @Column(name = "code" , length = 20)
    public String code;

    /**
     * 区域名称
     */
    @Column(name = "name" , length = 100)
    public String  name;

    /**
     * 节点全路径
     */
    @Column(name = "node_id_path" , length = 100)
    public String nodeIdPath;

    /**
     * 区域级别
     */
    @Column(name = "level")
    public Integer level;

    /**
     * 是否为叶子节点
     */
    @Column(name = "is_leaf")
    public Boolean isLeaf;

    /**
     *排序号
     */
    @Column(name = "show_order")
    public Integer showOrder = 0;

    /**
     * 说明
     */
    @Column(name = "remark")
    public String remark;

}
